<me:UIKS05 x:Class="WPFExcelReport.TUIKS05"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                     xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT"   
                     xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:WH="clr-namespace:WPFExcelReport;assembly=TLAGPL"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIKS05.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIKS05.Resources>
    <StackPanel> 
        <WrapPanel>  
            <TextBlock  Text="{Binding Source={Localization:Translate Word=成本中心}}"/>
            <TextBlock  Text="{Binding KSZKSTKRS}" Width="30" />
            <TextBlock  Text="{Binding KSZKST}" Width="90" />
            <TextBlock  Text="{Binding Source={Localization:Translate Word=操作}}"/> 
            <TextBlock  Text="{Binding KSZAGANG}" Width="120" />
            <WrapPanel>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=库位:}}"/>
                <ex:TXT72  MaxLength="2" CharacterCasing="Upper"  Text="{Binding KSZLO}" Width="40"/>
                <ex:TXT72  MaxLength="2" CharacterCasing="Upper"  Text="{Binding KSZLB}" Width="60"/>
                <ex:TXT72  MaxLength="8" CharacterCasing="Upper"  Text="{Binding KSZLP}" Width="60"/>
                <CheckBox   Name="cWH"></CheckBox>                       
                    <WH:TSWH  KEY="{Binding WH,ElementName=TV}" 
                                  Visibility="{Binding IsChecked,ElementName=cWH,Converter={StaticResource bv}}"/>
               
              
            </WrapPanel>
            <LS:TSLS02 Grid.Column="1" MinWidth="100"
                                  IsEdit="{Binding IsEdit,ElementName=TV}"
                                  KEY="{Binding Path=LIEFNR,ElementName=TV}"
                                  ORDERNUM="{Binding Path=LIEFNR,ElementName=TV}"
                                 />
        </WrapPanel> 
        
    </StackPanel>

</me:UIKS05>
